<?php

declare(strict_types=1);
namespace App\CustHub\Process;

use Hyperf\AsyncQueue\Process\ConsumerProcess;
use Hyperf\Process\Annotation\Process;

#[Process(name: "saas-queue")]
class SaasQueueConsumer extends ConsumerProcess
{
    protected string $queue = 'saas';

    public function isEnable($server): bool
    {
        return \Hyperf\Support\env('REDIS_QUEUE_ENABLE', false);
    }
}